package com.example.configdemo.demos.web.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Q
 * @create 2025-05-30-17:31
 */
@RestController
@RequestMapping("/pro")
public class PropertiesControllr {
    @Value("${font.size}")
    private String fontSize;

    @Value("${spring.datasource.url}")
    private String mysqlUrl;

    @RequestMapping("/getFontSize")
    public String getFontSize() {
        System.out.println(mysqlUrl);
        return "fontSize: " + fontSize;
    }

}
